import Http from '../utils/http'
const http = new Http()
class Service {
  // 获取服务列表接口
  getservieList({page,count,category_id=null,type=null}) {
    return http.request({
      url: '/v1/service/list',
      method: "GET",
      data: {
        page,
        count
      }
    })
  }
  // 获取服务分类接口
  getcategoryList() {
    return http.request({
      url:'/v1/category',
      method:'GET'
    })
  }
  // 获取服务详情接口
  getServiceById(serviceId){
    return http.request({
        url : `/v1/service/${serviceId}`
    })
}
}


export default Service